package com.cavy.platform.server.dto;

import com.cavy.platform.server.validator.AgentExist;
import com.cavy.platform.server.validator.FormatValidatorGroup;
import com.cavy.platform.server.validator.LastValidatorGroup;
import lombok.Data;

import javax.validation.GroupSequence;
import javax.validation.constraints.NotNull;

/**
 * @author 唐旭
 * @Date 2018/7/24
 */
@Data
@GroupSequence({FormatValidatorGroup.class, LastValidatorGroup.class, AgentDeleteDto.class})
public class AgentDeleteDto {
    @NotNull(message = "主机名称不能为空", groups = FormatValidatorGroup.class)
    @AgentExist(message = "agent不存在", groups = LastValidatorGroup.class)
    private String hostname;
}
